package com.jiuair.cloud.data.revenue.demo;

/**
 * @Description:
 * @Author: dengh
 * @Date: 2023/2/10 16:27
 * @Version: 1.0
 */
public class Test2 {
    double a  ;
    double b ;
    double c;
public double getA(){
    return a*8+13*b;
}
    public double getB(){
        return a*8+13*b+c*20;
    }
    public double getC(){
        return a*8+13*b*0.8+c*20;
    }
    public double getD(){
       double d=a*8+13*b+c*20;
       if(d<100){
           return d;
       }else {
           return d-10;
       }

    }

}

class Demo {
    public static void main(String[] args) {
        Test2 test2 =  new Test2();
        test2.a=1;
        test2.b=2;
        test2.c=4;
        System.out.println(test2.getA());
        System.out.println(test2.getB());
        System.out.println(test2.getC());
        System.out.println(test2.getD());
    }
}
